// 注意，部署生产环境应设置为 PRD
const BUILD_ENV = 'UAT';
// const BUILD_ENV = 'PRD';

const CONFIG = {
  UAT: {
    REDIRECTURI: atob('aHR0cHM6Ly9hcGktYjJiLXFhLmNuLXBnY2xvdWQuY29tL3BhYXMtc3NvZmVkL3YxL2F1dGg/YXBwPXBhbmd1JnN1YnNjcmlwdGlvbi1rZXk9Y2UyOTc1MDQxOGRiNDgyYzk4M2ViN2NhNzE1NDQ0NmQ='),
    LOGINPATH: atob('aHR0cHM6Ly9hcGktYjJiLXFhLmNuLXBnY2xvdWQuY29tL3BhYXMtc3NvZmVkL3YzL2xvZ2luP2FwcD1wYW5ndSZzdWJzY3JpcHRpb24ta2V5PWNlMjk3NTA0MThkYjQ4MmM5ODNlYjdjYTcxNTQ0NDZk'),
    REFRESHTOKENRUI: atob('aHR0cHM6Ly9hcGktYjJiLXFhLmNuLXBnY2xvdWQuY29tL3BhYXMtc3NvZmVkL3YzL3Rva2VuL3JlZnJlc2g='),
    OCPAPIMSUBSCRIPTIONKEY: atob('Y2UyOTc1MDQxOGRiNDgyYzk4M2ViN2NhNzE1NDQ0NmQ='),
    DEFAULTIMAGEURL: 'https://pangu-qa.pg.com/images/',
    DEFAULTATTACHMENTURL: 'https://zhurong-qa.pg.com/images/',
    DEFAULTPLOTIMAGEURL: 'https://pangu-qa.pg.com/plots/',
    PINGVALIDATEURL: 'https://api-b2b-qa.cn-pgcloud.com/paas-ssofed/v3/pingid/code/validate',
    EAGLEEYEURL: 'https://eagleeye-qa.pg.com',
  },
  PRD: {
    REDIRECTURI: atob('aHR0cHM6Ly9hcGktYjJiLXByZC5jbi1wZ2Nsb3VkLmNvbS9wYWFzLXNzby92MS9hdXRoP2FwcD1wYW5ndSZzdWJzY3JpcHRpb24ta2V5PTczYWVhNTUwMmFkNjQ5MDY5ZWYwNWU0NjQ5OWZkMTBk'),
    LOGINPATH: atob('aHR0cHM6Ly9hcGktYjJiLXByZC5jbi1wZ2Nsb3VkLmNvbS9wYWFzLXNzby92My9sb2dpbj9hcHA9cGFuZ3Umc3Vic2NyaXB0aW9uLWtleT03M2FlYTU1MDJhZDY0OTA2OWVmMDVlNDY0OTlmZDEwZA=='),
    REFRESHTOKENRUI: atob('aHR0cHM6Ly9hcGktYjJiLXByZC5jbi1wZ2Nsb3VkLmNvbS9wYWFzLXNzby92My90b2tlbi9yZWZyZXNo'),
    OCPAPIMSUBSCRIPTIONKEY: atob('NzNhZWE1NTAyYWQ2NDkwNjllZjA1ZTQ2NDk5ZmQxMGQ='),
    DEFAULTIMAGEURL: 'https://pangu.pg.com/images/',
    DEFAULTATTACHMENTURL: 'https://zhurong-qa.pg.com/images/',
    DEFAULTPLOTIMAGEURL: 'https://pangu.pg.com/plots/',
    PINGVALIDATEURL: 'https://api-b2b-prd.cn-pgcloud.com/paas-sso/token/validate',
    EAGLEEYEURL: ''
  }
};
const ACCESS_CONFIG = CONFIG?.[BUILD_ENV] || CONFIG?.PRD;

export {
  ACCESS_CONFIG
};
